package com.example.educationblockchain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName(value = "major")
public class Major {
    String college;
    @TableId(type = IdType.AUTO)
    String id;
    String _name;

    public Major() {
    }

    public Major(String college, String id, String _name) {
        this.college = college;
        this.id = id;
        this._name = _name;
    }

    public String getCollege() {
        return college;
    }

    public void setCollege(String college) {
        this.college = college;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String get_name() {
        return _name;
    }

    public void set_name(String _name) {
        this._name = _name;
    }

    @Override
    public String toString() {
        return "Major{" +
                "college='" + college + '\'' +
                ", id='" + id + '\'' +
                ", _name='" + _name + '\'' +
                '}';
    }
}
